package org.chen.auth.service.impl;

import org.chen.auth.domain.Permission;
import org.chen.auth.mapper.PermissionMapper;
import org.chen.auth.service.IPermissionService;
import org.chen.bas.service.lmpl.BasServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chen
 * @since 2024-05-15
 */
@Service
public class PermissionServiceImpl extends BasServiceImpl<Permission> implements IPermissionService {
    @Autowired
    private PermissionMapper mapper;

    @Override
    public void deleteAll() {
        mapper.deleteAll();
    }

    @Override
    public List<String> selectSnById(Long id) {
        return mapper.selectSnById(id);

    }
}
